package net.mysoft.budgetsoft.system.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

/**   
 *  
 * @author dagongPGP v1.0 
 * @link <a href=http://www.mysoft.net>北京大公信软科技有限公司</a> 
 *  
 * @version $Revision: 1.00  $Date: 2013-07-23 11:37:31 
 */
@Entity
@Table(name="FlowTemplate_YeWuZL")
public class TFlowTemplate_YeWuZL implements java.io.Serializable {  
    private String flowTemplate_YeWuZL_ID;
    private String ftl_ID;
    private String yeWuZLBH;
    
	@Id 
	@GeneratedValue(generator = "IDGenerator")
	@GenericGenerator(name = "IDGenerator", strategy = "net.mysoft.framework.util.IDGenerator", 
			parameters = { @Parameter(value = "SEQ_FTL_YeWuZL", name = "seq")})
    @Column(name="FlowTemplate_YeWuZL_ID", unique=true, nullable=false)
    public String getFlowTemplate_YeWuZL_ID(){
    	return this.flowTemplate_YeWuZL_ID;
    }
    
    public void setFlowTemplate_YeWuZL_ID(String flowTemplate_YeWuZL_ID){
    	this.flowTemplate_YeWuZL_ID = flowTemplate_YeWuZL_ID;
    }
    
    @Column(name="FTL_ID")
    public String getFtl_ID(){
    	return this.ftl_ID;
    }
    
    public void setFtl_ID(String fTL_ID){
    	this.ftl_ID = fTL_ID;
    }
    
    @Column(name="YeWuZLBH")
    public String getYeWuZLBH(){
    	return this.yeWuZLBH;
    }
    
    public void setYeWuZLBH(String yeWuZLBH){
    	this.yeWuZLBH = yeWuZLBH;
    }
    
	
    @Override
    public int hashCode() {
    	int prime = 0;
        prime +=this.getFlowTemplate_YeWuZL_ID().hashCode();
        return prime;
    }

    @Override
    public boolean equals(Object obj) {
    	boolean isEquals = false;
    	if(obj!=null&&this.getClass()==obj.getClass()){
    		TFlowTemplate_YeWuZL clazz = (TFlowTemplate_YeWuZL)obj;
            if(clazz.getFlowTemplate_YeWuZL_ID().equals(this.getFlowTemplate_YeWuZL_ID()))
            	isEquals = true;
    		return isEquals;
    	}
        return isEquals;
    }

}